package com.aimusic.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 好友关系表（记录用户与好友的关联）
 * </p>
 *
 * @author author
 * @since 2025-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("friendships")
@ApiModel(value="Friendships对象", description="好友关系表（记录用户与好友的关联）")
public class Friendships implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "好友关系ID（主键）")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "发起关系的用户ID（关联 user.id）")
    private Long userId;

    @ApiModelProperty(value = "被关联的好友ID（关联 user.id）")
    private Long friendId;

    @ApiModelProperty(value = "关系状态：0=待确认，1=已确认（好友），2=已拒绝")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;


}
